﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using KBManagement.OrderProcess;
using KBManagement.Library;
using KBManagement.DAL;
namespace KBManagement
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Login());
      //  test();
           //testPrint();
        }
        public static void test()
        {
            var cusTypes = from ct in Utils.CreateInstance().GetDBContext().Customer_Types orderby ct.NormsMoney ascending select ct;
                foreach (Customer_Type item in cusTypes)
                {
                    Console.WriteLine(item.NormsMoney);
                }
        }
        public static void testPrint()
        {
            //Create an instance of our printer class
            PrintUtils printer = new PrintUtils();
            printer.DocumentName = "Hóa đơn";
            //Set the font we want to use
            printer.PrinterFont = new System.Drawing.Font("Verdana", 10);
            //Set the TextToPrint property
            printer.TextToPrint = "kekekfdsafafsas\nfasfjhaksjflhlakj\nfashfkajshfkjahklfaj";
            //Issue print command
            printer.Print();


        }
    }
}
